package com.yao.entity;

/**
 * 菜肴实体
 * 
 * @author yaoym
 * @date 2018年2月2日 下午6:23:31
 * @version V1.0
 */
public class Dish {

	private final String name;

	/**
	 * 是否素食主义者
	 **/
	private final boolean vegetarian;

	private final int calories;
	private final Type type;

	public Dish(String name, boolean vegetarian, int calories, Type type) {
		this.name = name;
		this.vegetarian = vegetarian;
		this.calories = calories;
		this.type = type;
	}

	public String getName() {
		return name;
	}

	public boolean isVegetarian() {
		return vegetarian;
	}

	public int getCalories() {
		return calories;
	}

	public Type getType() {
		return type;
	}

	@Override
	public String toString() {
		return "Dish [name=" + name + ", vegetarian=" + vegetarian + ", calories=" + calories + ", type=" + type + "]";
	}

	
	public enum Type {
		MEAT, FISH, OTHER
	}
}
